package com.yituo.mjworld.mvc.form.support.user;

import com.yituo.mjworld.core.annotation.Rules;
import com.yituo.mjworld.core.web.core.BaseForm;

/**
 * 获取用户二维码Code
 */
public class GetUserQRCode extends BaseForm {

  /**
   * 如果普通用户请求了该表单,则该字段必须和请求中的ID相等
   */
  @Rules(fieldName = "userId", min = "10", onlySelf = true)
  public int userId;

  public int getUserId() {
    return userId;
  }

  public void setUserId(int userId) {
    this.userId = userId;
  }

  @Override
  public boolean validate() {
    return defaultValidate();
  }
}
